package com.five.pojo.entity;



import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Builder
@Table(name = "sso_user")
@TableName("sso_user")
public class User implements java.io.Serializable{
    @Id
    @GeneratedValue
    @TableId(type = IdType.AUTO)
    private Long id;

    private String username;

    private String phone;

    private String email;

    private String password;

    private String salt;

    @Column(name = "last_login_time")
    private Date lastLoginTime;

    @Column(name = "pc_token")
    private String pcToken;

    @Column(name = "app_token")
    private String appToken;

    @Column(name = "refresh_token")
    private String refreshToken;

    @Column(name = "refresh_token_expire")
    private Date refreshTokenExpire;

    private Date created;

    private String ip ;

    private Integer status;

    private Integer enbale;

    private String image;
}